#ifndef MYPEOPLEWIDGET_H
#define MYPEOPLEWIDGET_H
#include <QWidget>
#include <QTimer>
#include <QFile>
#include<QDate>
#include<QVector>
#include <QMessageBox>
QT_BEGIN_NAMESPACE
class QLineEdit;
class QPushButton;
class QLabel;
QT_END_NAMESPACE

class MyPeopleWidget : public QWidget
{
  Q_OBJECT

public:
  explicit MyPeopleWidget(QWidget *parent = nullptr);
~MyPeopleWidget();

  void readText();
  void writeText();

  void create();

signals:
  void mySignalZuHao(const QString& msg); //自定义信号函数,msg参数可以省略


private slots:
  void btn_clicked();


private:

  QVector<QString> vecIdCard;
  QPushButton *btn = nullptr;
  QLineEdit *lineEdit = nullptr;
  QLabel *labelTip = nullptr;

  QString zuhao;

  int CurrentGroupNumber = 1;

  int BeforeGroupNumber = -1;

  QString lineEditString;

  QFile file;

  QDate m_date;
  QString currentDate;
};


#endif // MYPEOPLEWIDGET_H
